<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class Topics extends TimeModel
{

    protected $name = "topics";

    protected $deleteTime = false;

    
    
    public function getTypeList()
    {
        return ['1'=>'单选题','2'=>'多选题','3'=>'判断题',];
    }

    public function course()
    {
        return $this->belongsTo('app\admin\model\Course', 'cid', 'id');
    }

    public function subjects()
    {
        return $this->belongsTo('app\admin\model\Subjects', 'sid', 'id');
    }




}